package com.pucong.gitee.database.backup.database.service;

import com.pucong.gitee.database.backup.database.vo.DatabaseVo;
import com.pucong.gitee.database.backup.database.vo.ExeSqlResult;

public interface OperationDataSqlService {

    /**
     * 执行sql
     * @param databaseId
     * @param databaseVo
     * @return
     */
    ExeSqlResult executeSql(String databaseId, DatabaseVo databaseVo);

    /**
     * 处理事物
     * @param databaseId
     * @param databaseVo
     * @return
     */
    Boolean autoTransactionalCommit(String databaseId, DatabaseVo databaseVo);
}
